package com.hzp.micromall.admin.feign;

import com.hzp.micromall.common.core.api.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @Author houzipeng
 * @Date 2022/2/16 23:43
 * @Version 1.0
 */
@FeignClient("micromall-auth")
public interface AuthService {
    @PostMapping(value = "/oauth/token")
    CommonResult getAccessToken(@RequestParam Map<String, String> parameters);
}
